package com.chapter6.jiekou.demo6;

import com.chapter6.jiekou.demo3.Flyable;

/**
 * Bird类，它是动物，又会飞，因此可以让Bird类同时实现Animal和Flyable这两个接口
 */
public class Bird implements Animal, Flyable {
    @Override
    public void eat() {
        System.out.println("Bird eat");
    }

    @Override
    public void sleep() {
        System.out.println("Bird sleep");
    }

    @Override
    public void fly() {
        System.out.println("Bird fly");
    }
}
